package com.zgm.ch06.aop.xml.afterThrow._3_3_3;

import org.aspectj.lang.JoinPoint;

import com.zgm.ch06.aop.common.User;

public class AspectBean {

	/*public void logCall(JoinPoint jp) {
		System.out.println("方面生效了");
		System.out.println(jp);
	}*/
	
	/*public void auditCall(Object target, Object ret) {
		System.out.println("后直通知执行了");

		if(ret instanceof User) {
			((User) ret).setPassword("***");
		}
	}*/
	
	public void healthMonitoring(Object target, NullPointerException ex) {
		System.out.println("目标target " + target + " 抛出了一个异常：" + ex);
	}
}
